﻿using System.ComponentModel.DataAnnotations;
using System;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 调拔ID
    /// </summary>
    [Serializable]
    public class ProductAllotDto
    {
        public Guid Id { get; set; }
        [Display(Name = "调拔单号")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string AllotNo { get; set; }

        [Display(Name = "调拔单位")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid AllotOrgID { get; set; }

        [Display(Name = "调拔人")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid AllotorID { get; set; }


        [Display(Name = "调拨来源单位")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid FromClientID { get; set; }
        [Display(Name = "调向单位")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public System.Guid ToClientID { get; set; }


        [Display(Name = "备注")]
        public string Remarks { get; set; }

        public int BillState { get; set; }//单子状态
        public int IsSettle { get; set; }//是否结算
        public int Deleted { get; set; }

        public System.Guid CreateID { get; set; }
        public System.DateTime CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }



        public string AllotOrgName { get; set; }//调拔单位
        public string AllotorName { get; set; }//调拔人
        public string FromClientName { get; set; }//调拨来源单位
        public string ToClientName { get; set; }//调向单位


        public string BillStateName { get; set; }//单子状态
        public string DeleteState { get; set; }//删除状态
        public string SettleState { get; set; }//结算状态
    }
}
